package com.hhs.storage.service;

import com.hhs.storage.bean.ProjectWorkFlow;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hhs.storage.bean.SubWkFlow;
import com.hhs.storage.bean.dto.WorkFlow;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hhs
 * @since 2023-02-10
 */
public interface ProjectWorkFlowService extends IService<ProjectWorkFlow> {
    public Map<String,Object> getAll(ProjectWorkFlow projectWorkFlow);
    public Map<String,Object> add(Integer step,String content,String projectPlanId);
    public Map<String,Object> edit(Integer step,String content,String id);
    public Map<String,Object> dele(String id);
    public Map<String,Object> changeStatue(String id,Integer status);
    //添加工序，
    // type= null ，表示项目计划里的工序
    // type =2 ，表示领导交代里领导工序
    // type =3，表示领导交代里的职员工序
    // type =4，表示备忘录的工序
    void addWorkFlow(String projectPlanId, List<SubWkFlow> projectWorkFlows, Integer type);

    void deleByPlanId(String id);

    Map<String, Object> wkEdit(WorkFlow workFlow);

    Map<String, Object> wkQuery(WorkFlow workFlow);
}
